package hammersmith.local.valueobjects;

import java.io.Serializable;

/**
 * Personenklasse (...vererbt Attribute und Methoden den Unterklassen Customer und Employee)
 * 
 * @author hammersmith
 *
 */

public class Person implements Serializable{

	private static final long serialVersionUID = 4340853679573140142L;
	private String lastname;
	private String firstname;
	private String street;
	private String zip;
	private String city;

	//Leerer Konstruktor
	public Person(){
	}
	
	//Konstruktor
	public Person(String lastN, String firstN, String str, String zip, String c) {
		this.lastname = lastN;
		this.firstname = firstN;
		this.street = str;
		this.zip = zip;
		this.city = c;
	}
	
	public String getCity() {
		return city;
	}
	
	public String getFirstname() {
		return firstname;
	}
	
	public String getLastname() {
		return lastname;
	}
	
	public String getStreet() {
		return street;
	}
	
	public String getZip() {
		return zip;
	}
	
	public void setCity(String city) {
		this.city = city;
	}
	
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	
	public void setStreet(String street) {
		this.street = street;
	}
	
	public void setZip(String zip) {
		this.zip = zip;
	}
	
}
